﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CorrectPassword.aspx.cs" Inherits="Pages_User_CorrectPassword" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <table width="100%">
        <tr>
            <td colspan="4" align="center">
                <asp:Label ID="titleLabel" runat="server" Text="修改密码" Font-Size="X-Large" 
                    ForeColor="Red"></asp:Label></td>
        </tr>
        <tr>
            <td colspan="4" style="height:40px"></td>
        </tr>
        <tr>
            <td style="width:25%;height:40px"></td>
            <td style="width:15%">旧密码</td>
            <td style="width:30%">
                <asp:TextBox ID="passwordTextBox" runat="server" MaxLength="100" 
                    TextMode="Password" Width="100%"></asp:TextBox>
            </td>
            <td style="width:30%">
                <asp:RequiredFieldValidator ID="passwordRequiredFieldValidator" runat="server" 
                    ErrorMessage="*旧密码不能为空" ForeColor="Red" 
                    ControlToValidate="passwordTextBox"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td  style="width:25%;height:40px"></td>
            <td>新密码</td>
            <td>
                <asp:TextBox ID="newPasswordTextBox" runat="server" MaxLength="100" 
                    TextMode="Password" Width="100%"></asp:TextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="newPasswordRequiredFieldValidator" runat="server" 
                    ErrorMessage="*新密码不能为空" ForeColor="Red" 
                    ControlToValidate="newPasswordTextBox"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td  style="width:25%;height:40px"></td>
            <td>重复新密码</td>
            <td>
                <asp:TextBox ID="reNewPasswordTextBox" runat="server" MaxLength="100" 
                    TextMode="Password" Width="100%"></asp:TextBox>
            </td>
            <td>
                <asp:CompareValidator ID="reNewPasswordCompareValidator" runat="server" 
                    ErrorMessage="*两次密码不一致" ControlToCompare="newPasswordTextBox" 
                    ControlToValidate="reNewPasswordTextBox" ForeColor="Red"></asp:CompareValidator>
                <asp:RequiredFieldValidator ID="reNewPasswordRequiredFieldValidator" runat="server" 
                    ErrorMessage="*重复新密码不能为空" ControlToValidate="reNewPasswordTextBox" 
                    ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
        <td  style="height:40px" colspan="4"></td>
        </tr>
        <tr>
            <td  style="width:25%;height:40px"></td>
            <td colspan="2" align="center">
                <asp:Button ID="submitButton" runat="server" Text="提交" Width="100px" 
                    onclick="submitButton_Click" />
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Button ID="resetButton" runat="server" Text="重填" Width="100px" 
                    onclick="resetButton_Click" />
            </td>
            <td></td>
        </tr>
    </table>
    </div>
    </form>
</body>
</html>
